package thirdQuestion;

import java.util.Arrays;

public class ThirdQuestion {
	public boolean seamString(String s1, String s2){
		char[] charS1 = s1.toCharArray();
		char[] charS2 = s2.toCharArray();
		Arrays.sort(charS1);
		Arrays.sort(charS2);
		String sortS1 = new String(charS1);
		String sortS2 = new String(charS2);
		if(sortS1.equals(sortS2)){
			return true;
		}else{
			return false;
		}
	}
}
